  
<script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
  <script type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
  <script type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
<style type="text/css">
  .line { height: auto; margin-top: 20px; }
  input{ width: 244px; height: 30px; margin-left: 18px; background: #F9F9F8; border: 1px solid #D8DEE6; border-radius: 4px; font-family: MicrosoftYaHei; font-size: 12px; color: #9297A0; line-height: 14px; padding-left: 12px;}
  select{ width: 244px; height: 30px; margin-left: 18px; background: #F9F9F8; border: 1px solid #D8DEE6; border-radius: 4px; font-family: MicrosoftYaHei; font-size: 12px; color: #9297A0; line-height: 14px; padding-left: 12px;}

.add {display: block;margin: 0 auto; width: 165px; height: 40px; border: none; background-color: #00A2FF; color: #FFF; }
.cancle { width: 165px; height: 40px; border: none; background-color: #E7ECEE; color: #AFB6BB; }

</style>

  <div class="content col-xs-12 col-sm-10">
            <div class="banner">
              <p class="fl">内容管理 > 内容修改</p>
            </div>
          
            <div class="infoBox">
              <!-- <div class="info"> -->
        <?php echo validation_errors(); ?>

         <?php 
            $attributes = array('enctype' => 'multipart/form-data');
              echo form_open('article/update/'.$articleInfo->id); 
            ?>                   
                        <div class="line">
                            <label>标题:</label>
                            <input type="text" name="title" value="<?=$articleInfo->title?>" />
                        </div>
                      <div class="line">
                            <label>摘要:</label>
                            <input type="text" name="abstract" value="<?=$articleInfo->abstract?>" />
                        </div>

                        <div class="line">
                            <label>栏目:</label>
                            <select name="catalogid"  class="level">
                               <?php 
                                foreach ($cataloglist as $item)
                                {
                                  if ($item['id'] == $articleInfo->catalogid)
                                  {
                                      echo "<option value='".$item['id']."' selected>".$item['title']."</option>";
                       
                                  }
                                  else {
                                      echo "<option value='".$item['id']."'>".$item['title']."</option>";
                                  }
                                }

                                ?>
                            </select> 
                              
                          </div>  
                     
                         <div class="line">
                            <label>封面图片:</label>
                            <input type="text" name="image" value="<?=$articleInfo->image?>">
                          </div> 
                
                        <div  class="line">
                            <!-- <label>内容:</label> -->
                            <!-- <input type="text" name="content" value=""> -->
                      <script id="container" name="content" type="text/plain">
                        <?=$articleInfo->content?>
                      </script>
  

                        </div> 
                    
                        <div class="lastLine">
                          <input type="submit" value="修改" class="add"/>
                          <!-- <input type="button" value="" class="cancel fr"/> -->

                      </div>  
                 </form> 
                <!-- </div> -->

            </div>
          
        </div>
      </div>
    </div>

     <script type="text/javascript">
        var ue = UE.getEditor('container');
    </script>